/* ==============================================
   ECOMEDICC - SISTEMA DE REVIEWS CSS
   ============================================== */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  width: 100%;
}

.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.doctor-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.doctor-name {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.specialty {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.review-stars {
  display: relative;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 26px;
  cursor: pointer;
}

.review-stars .star {
  color: #ccc;
  transition: color 0.25s, transform 0.25s, text-shadow 0.3s;
}

.review-stars .star.active {
  color: gold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  transform: scale(1.2);
  animation: pop 0.25s ease;
}

.review-stars .star:hover {
  color: orange;
  transform: scale(1.15);
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.1); }
}

/* Efecto de "chispas" (sparkle) */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, gold 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleFade 0.6s ease-out forwards;
  z-index: 2;
  /* Asegura que la transformación se origine desde el centro */
  transform-origin: center;
}

@keyframes sparkleFade {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0) translateY(-30px);
    opacity: 0;
  }
}
.rating-text {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
@media (prefers-color-scheme: dark) {
  .review-stars .star { color: #777; }
  .review-stars .star.active { color: #ffd700; text-shadow: 0 0 8px rgba(255, 230, 80, 0.7); }
  .review-stars .rating-text { color: #ddd; }
}
